#include <Arduino.h>
#include "wifi_ctrl.h"
#include "watchdog.h"



void setup() 
{
  // put your setup code here, to run once:
  Serial.begin(115200);
  delay(10);

  Serial.printf("ESP32 HEAP %d\r\n", esp_get_free_heap_size());

  WiFi_Setup();

  Serial.printf("ESP32 HEAP %d\r\n", esp_get_free_heap_size());

  Watchdog_Init();

  Serial.printf("loop start\r\n");
}

void loop() 
{
  // put your main code here, to run repeatedly:
  feed_dog();
 
  WiFi_Loop();

  client.loop();
  
  feed_dog();
}